package com.alibaba.otter.manager.biz.statistics.throughput.dal.dataobject;

import com.alibaba.otter.manager.biz.dal.AbstractDO;
import com.alibaba.otter.shared.common.model.statistics.throughput.ThroughputType;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.time.Instant;

/**
 *  实体类。
 *
 * @author LCH
 * @since 2024-09-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "throughput_stat")
public class ThroughputStatDO extends AbstractDO {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    private ThroughputType type;

    private Long number;

    private Long size;

    private Long pipelineId;

    private Instant startTime;

    private Instant endTime;


}
